<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://ajaxtags.org/tags/ajax" prefix="ajax"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<jsp:include page="/jsp/include/header.jsp" flush="true" />

<!-- container starts here -->
<div id="container">
	<!-- top starts here -->
	<div id="top">
		
		<div id="title">
			
			<a href="/pimsweb"><h2>Pollination Information Management System</h2></a>
		</div>

		
	</div><!-- top ends here -->
	
	<div id="leftcol">
	
		<p><strong>What are the pollination needs of a particular crop ?</strong></p>
		
		
		<form action="/pimsweb/pollinationNeeds.do" class="basicForm">
		
		INCREASE SEED PRODUCTION TEMPLATE
		
  <fieldset>
    <legend>Enter name of crop</legend>
    
	
    <label for="name">Scientific or common name</label>
    <input id="nameofcrop" name="nameofcrop" type="text" size="60" />
    <span id="indicator" style="display:none;"><img src="${contextPath}/img/indicator.gif" /></span>
	<!-- 
    <label for="make">Common name:</label>
    <input id="commonName" name="commonName" type="text" size="40" />
     
    <input type="submit" value="Submit">
    -->
  </fieldset>
</form>
<div id="errorMsg" style="display:none;border:1px solid #e00;background-color:#fee;padding:2px;margin-top:8px;width:300px;font:normal 12px Arial;color:#900"></div>
 

<logic:present name="pollneeds">
  
  	<logic:iterate id="pollneed" name="pollneeds">
  
	 	<p>
	 		System response: General impact <bean:write name="pollneed" property="generalImpact"/> template</p>
	 	
		<p>
			<bean:write name="pollneed" property="crop.commonName"/> (<bean:write name="pollneed" property="crop.scientificName"/>) show an increase in seed production in response to animal pollination.
		</p>
		
		<p>
			The seed production increase is <bean:write name="pollneed" property="specificImpact"/>.
		</p>
		<p>
			<bean:write name="pollneed" property="crop.scientificName"/> flowers are <a href="javascript://nop/" class="definition"><bean:write name="pollneed" property="breedingSystem"/></a>
		</p>
		<p>
			<a href="javascript://nop/" class="definition">pollination</a> in the absence of visitors is <a href="javascript://nop/" class="definition"><bean:write name="pollneed" property="pollinationNoVisitors"/></a>
		</p>
		<p>
			In studies in different locations around the world, the following have been seen
		to pollinate <bean:write name="pollneed" property="crop.scientificName"/> flowers: 
		
			<logic:present name="pollinators">
				<table>
				<logic:iterate id="pollinator" name="pollinators">
					<tr><td><bean:write name="pollinator" property="scientificName"/></td></tr>
				</logic:iterate>
				</table>
			</logic:present>
		
		</p>
	</logic:iterate>
</logic:present>


 
 

</div><!-- leftcol ends here -->

	<div id="rightcol">
	<strong></strong>
	
		<table>
		<tr><td><a href="">What is the current understanding of managing pollination of a particular crop?</a></td></tr>
		<tr><td><a href="">What studies have been carried out on the pollination of this crop?</a></td></tr>
		<tr><td><a href="">What is known about the pollinators of this crop?</a></td></tr>
		<tr><td><a href="">What is known about pesticide impacts on pollinators?</a></td></tr>
		<tr><td><a href="">What pollinator-friendly practices can promote the conservation and management of these pollinators?</a></td></tr>
		</table>




	
	
	</div>	<!-- rightcol ends here -->


	<div id="footer">	
		
		<p align="center"><a href="http://www.fao.org/copyright_en.htm" title="FAO Copyright information">2008 FAO - AGP</a></p>
		

   </div> <!-- footer ends here -->

</div>	<!-- container ends here -->

<ajax:autocomplete
  source="nameofcrop"
  target="commonName"
  baseUrl="${contextPath}/autocomplete.view"
  className="autocomplete"
  indicator="indicator"
  minimumCharacters="2"
   />	
<ajax:callout
  baseUrl="${contextPath}/callout.view"
  sourceClass="definition"
  parameters="q={ajaxParameter}"
  title="Definition" />
<jsp:include page="/jsp/include/footer.jsp" flush="true" />